package com.longxi.tianjintianbao.greedao.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

import java.util.Date;

@Entity
public class User {
    @Id(autoincrement = true)
    public Long id;
    public Long iptype;//登录用户所使用的ip类型
    public Long userid;//登录用户内部编码
    public String username;//用户姓名
    public String phone;//用户登记电话
    public String sex;//用户性别
    public String birth;//用户生日 例：1990-01-01
    public String head;//用户头像
    public String buildid;//用户所属小区
    public String build;//用户所属小区
    public String deptid;//用户所属部门
    public String dept;//用户所属部门
    public String isLogin;//多账号时 是否通过这个账号登录 0否 1是
    public String loginUsername;//用户登录账号
    public String loginPassword;//用户登录密码
    public Date updateTime;//更新时间

    @Generated(hash = 770523204)
    public User(Long id, Long iptype, Long userid, String username, String phone,
            String sex, String birth, String head, String buildid, String build,
            String deptid, String dept, String isLogin, String loginUsername,
            String loginPassword, Date updateTime) {
        this.id = id;
        this.iptype = iptype;
        this.userid = userid;
        this.username = username;
        this.phone = phone;
        this.sex = sex;
        this.birth = birth;
        this.head = head;
        this.buildid = buildid;
        this.build = build;
        this.deptid = deptid;
        this.dept = dept;
        this.isLogin = isLogin;
        this.loginUsername = loginUsername;
        this.loginPassword = loginPassword;
        this.updateTime = updateTime;
    }

    @Generated(hash = 586692638)
    public User() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getIptype() {
        return iptype;
    }

    public void setIptype(Long iptype) {
        this.iptype = iptype;
    }

    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getBirth() {
        return birth;
    }

    public void setBirth(String birth) {
        this.birth = birth;
    }

    public String getHead() {
        return head;
    }

    public void setHead(String head) {
        this.head = head;
    }

    public String getBuildid() {
        return buildid;
    }

    public void setBuildid(String buildid) {
        this.buildid = buildid;
    }

    public String getBuild() {
        return build;
    }

    public void setBuild(String build) {
        this.build = build;
    }

    public String getDeptid() {
        return deptid;
    }

    public void setDeptid(String deptid) {
        this.deptid = deptid;
    }

    public String getDept() {
        return dept;
    }

    public void setDept(String dept) {
        this.dept = dept;
    }

    public String getIsLogin() {
        return isLogin;
    }

    public void setIsLogin(String isLogin) {
        this.isLogin = isLogin;
    }

    public String getLoginUsername() {
        return loginUsername;
    }

    public void setLoginUsername(String loginUsername) {
        this.loginUsername = loginUsername;
    }

    public String getLoginPassword() {
        return loginPassword;
    }

    public void setLoginPassword(String loginPassword) {
        this.loginPassword = loginPassword;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
